package com.example.changtest.test

/**
 * @Description:
 * @author: zcs
 * @email: 1059737741@qq.com
 * create at 2022/1/25 13:48
 */
class Calculator {
    fun divide(a: Int, b: Int): Double{
        if(b == 0) throw IllegalArgumentException("Cannot divided by zero")
        return a.toDouble()/b
    }

    fun plus(a: Int, b: Int): Int{
        return a+b
    }
}